<?php

require_once 'Core/Db/Table/Abstract.php';
require_once 'Core/Db/Table/Row/Abstract.php';
require_once 'Core/Db/Table/Rowset/Abstract.php';

class Nld_Models_Jobs_Member_DbTable extends Core_Db_Table_Abstract
{
	public function init()
	{
		$this->_name 					= 'vl_member';
		$this->_primary 			= 'id';
		$this->_rowClass 			= 'Nld_Models_Jobs_Member_Row';
		$this->_rowsetClass 	= 'Core_Db_Table_Rowset_Abstract';

		$this->_dependentTables = array(
			'Member' 			=> Nld_Models::getTableClass('Jobs/Member'),
		);
	}
	public function getStatus($index = null)
  {
		$list = array('Ngừng kích hoạt', 'Kích hoạt');
    return ($index === null)?$list:@$list[intval($index)];
  }
}